//
//  DataAccess.h
//  RealatorView
//
//  Created by Ricky Jones on 1/20/09.
//  Copyright 2009 Vaporsoftware. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DBFoundation.h"
#import "Location.h"
#import "LocationImage.h"

@interface DataAccess : NSObject 
{

}

	-(void)DeleteLocation: (int) locationID;
	-(void)AddLocation: (Location*) locationToAdd;
	-(void)UpdateLocation: (Location*) locationToUpdate;

	-(Location*)GetLocation:(int) locationID;
	-(NSMutableArray*)GetLocations:(NSString*) area;
	-(Location*)GetLocationFromRow:(id) row : (BOOL) includeImage;

	-(NSMutableArray *) GetImages:(int) locationID;
	-(void) StoreImages:(int)locationID: (NSMutableArray*)imageToStore;
	-(void) DeleteImagesForLocation: (int) locationID;
	-(NSString*) GetDatabaseLocation;
@end
